class Enemy:

    def __init__(self, name='', atk=0, atk_sp=0, dp=0):
        self.dp = dp
        self.atk_sp = atk_sp
        self.atk = atk
        self.name = name

    @property
    def name(self):
        return self.__name

    @name.setter
    def name(self, name):
        self.__name = name

    @property
    def atk(self):
        return self.__atk

    @atk.setter
    def atk(self, atk):
        self.__atk = atk

    @property
    def atk_sp(self):
        return self.__atk_sp

    @atk_sp.setter
    def atk_sp(self, atk_sp):
        if 0 <= atk_sp <= 10:
            self.__atk_sp = atk_sp
        else:
            self.__atk_sp = None

    @property
    def dp(self):
        return self.__dp

    @dp.setter
    def dp(self, dp):
        if 0 <= dp <= 100:
            self.__dp = dp
        else:
            self.__dp = None


arthur = Enemy('亚瑟', 1, 1000, 333)
print(arthur.dp)
print(arthur.name)
